package sample.projectcustomconfig.customsourceconfig;

import lombok.Data;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

/**
 * 类基本信息
 */
@Data
public class ClassInfo {

    /**
     * 类名
     */
    private String className;

    /**
     * 报名
     */
    private String packageName;

    public ClassInfo(String className) {
        this(className, null);
    }

    public ClassInfo(String className, String packageName) {
        Assert.hasText(className, "className 不能为空");
        this.className = className;
        if (StringUtils.isEmpty(packageName)) {
            packageName = "";
        }
        this.packageName = packageName;
    }
}
